<?php

class HTML{
	/**
	 *  creates a list box
	 *  @param array items
	 *  @return
	 */
	public static function Listbox( $name, $items ){
		ob_start();
		?>
<select name='<?php echo $name;?>' size='4'>
<?php foreach( $items as $i ): ?>
	<option value='<?php echo $i['value'];?>' label='<?php echo $i['label'];?>' />
<?php endforeach; ?>
</select>
		<?php
		$content = ob_get_contents();
		$ob_end_clean();
		return $content;
	}
}
